/** When your routing table is too long, you can split it into small modules**/

const Layout = () => import('@/layout/index.vue');

const inviteRouter = {
  path: '/invite',
  component: Layout,
  name: 'invite',
  meta: {
    title: '邀請獎勵',
    icon: 'chart'
  },
  children: [
    {
      path: 'inviteLink',
      component: () => import('@/views/invite/inviteLink.vue'),
      name: 'inviteLink',
      meta: { title: '邀請關係', noCache: true }
    },
    {
      path: 'inviteProfit',
      component: () => import('@/views/invite/inviteProfit.vue'),
      name: 'inviteProfit',
      meta: { title: '邀請收益', noCache: true }
    }
  ]
};

export default inviteRouter;
